home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / fglqbx10.zip / 09-01.BAS < prev    next >
BASIC Source File  |  1991-06-06  |  681b  |  31 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. Perimeter$ = CHR$(&hFF)+CHR$(&h80)+CHR$(&h41)+CHR$(&h00)+CHR$(&h22)+CHR$(&h00)+CHR$(&h14)+CHR$(&h00)+CHR$(&h08)+CHR$(&h00)
  6. Interior$  = CHR$(&h00)+CHR$(&h00)+CHR$(&h3E)+CHR$(&h00)+CHR$(&h1C)+CHR$(&h00)+CHR$(&h08)+CHR$(&h00)+CHR$(&h00)+CHR$(&h00)
  7.  
  8. NewMode = FGbestmode(320,200,1)
  9. IF NewMode < 0 OR NewMode = 12 THEN
  10.    PRINT "This program requires a 320 x 200 color graphics mode."
  11.    STOP
  12. END IF
  13.  
  14. OldMode = FGgetmode
  15. FGsetmode NewMode
  16.  
  17. FGsetcolor 7
  18. FGrect 0, 319, 0, 199
  19.  
  20. FGmove 156, 101
  21. FGsetcolor 1
  22. FGdrawmap Perimeter$, 2, 5
  23. FGsetcolor 2
  24. FGdrawmap Interior$, 2, 5
  25. FGwaitkey
  26.  
  27. FGsetmode OldMode
  28. FGreset
  29.  
  30. END
  31.